
<?php
function genep($max){
//Huruf dan angka yang akan di acak
$char = array('<a href="http://www.lazada.co.id/#Q1371Cn154i.5F" rel="nofollow"><img src="http://srv-live.lazada.co.id/cms/imageslap/general/728x90_010713_1stcampaign_GENERALgenericproductsSET2.gif" width="685" border="0" /></a>',
'<a href="http://www.lazada.co.id/beli-Handphone-Tablet/#Q2534C1u546k11v" rel="nofollow"><img src="http://srv-live.lazada.co.id/cms/imageslap/mobile_tablets/set5/728x90_30072013_TABLETDGNTLP_SET5.jpg" width="685" border="0" /></a>',
'<a href="http://www.lazada.co.id/beli-kamera-prosumer/#Q3147CAn35mv21" rel="nofollow"><img src="http://srv-live.lazada.co.id/cms/imageslap/camera/SET5/728x90_23092013_CAMERA_SET5.jpg" width="685" border="0" /></a>',
'<a href="http://www.lazada.co.id/tas-koper/#Q1652Cx54kw9196" rel="nofollow"><img src="http://srv-live.lazada.co.id/cms/imageslap/travel_luggage/728x90_180613_1stcampaign_travel-&amp;-luggage.jpg" width="685" border="0" /></a>',
'<a href="http://www.lazada.co.id/beli-Perabotan-Rumah-Tangga/#Q1667C1l.545Ki" rel="nofollow"><img src="http://srv-live.lazada.co.id/cms/imageslap/household/728x90_180613_1stcampaign_household.jpg" width="685" border="0" /></a>',
'<a href="http://www.lazada.co.id/beli-Peralatan-Rumah-Tangga/#Q2983C1m54ym5I" rel="nofollow"><img src="http://srv-live.lazada.co.id/cms/imageslap/home_appliances/SET5/728x90_02092013_HOMEAPPLIANCES_SET5.jpg" width="685" border="0" /></a>',
'<a href="http://www.lazada.com.my/#Q3010C84n925v9u" rel="nofollow"><img src="http://srv-live.lazada.co.id/cms/imageslap/fashion/SET5/728x90_05092013_FASHION_SET5.jpg" width="685" border="0" /></a>',
'<a href="http://www.lazada.co.id/beli-Elektronik-Rumah-Tangga/#Q1619C2505j38.m" rel="nofollow"><img src="http://srv-live.lazada.co.id/cms/imageslap/electronics/set1/728x90_180613_1stcampaign_consumer-electronic.jpg" width="685" border="0" /></a>',
'<a href="http://www.lazada.co.id/beli-Komputer-Laptop/#Q2532C95zly3587" rel="nofollow"><img src="http://srv-live.lazada.co.id/cms/imageslap/computer/set3/728x90_30072013_LAPTOP_SET3.jpg" width="685" border="0" /></a>',
'<a href="http://www.lazada.co.id/gitar/#Q2728Ck8492wx58" rel="nofollow"><img src="http://srv-live.lazada.co.id/cms/imageslap/sports/SET3/728x90_13082013_SPORTS_SET3.jpg" width="685" border="0" /></a>',
'<a href="http://www.lazada.co.id/beli-Kesehatan-Kecantikan/#Q1663Cl1545kKt" rel="nofollow"><img src="http://srv-live.lazada.co.id/cms/imageslap/health/728x90_180613_1stcampaign_health.jpg" width="685" border="0" /></a>',
'<a href="http://www.lazada.co.id/beli-smartphone/sony/#Q1415C3j4.n9198" rel="nofollow"><img src="http://srv-live.lazada.co.id/cms/imageslap/sexy_list/sonyxperiaz/728x90_040713_SEXYLISTPRODUCTSET1_MobileTablet_SonyXperiaZ16GB.gif" width="685" border="0" /></a>',
'<a href="http://www.lazada.co.id/otomotif/#Q3078Ct549196tx" rel="nofollow"><img src="http://srv-live.lazada.co.id/cms/imageslap/automotive/SET5/728x90_16092013_AUTOMOTIVE_SET5.jpg" width="685" border="0" /></a>',
'<a href="http://www.lazada.co.id/beli-Mainan-Bayi/#Q2879CA!vwk58" rel="nofollow"><img src="http://srv-live.lazada.co.id/cms/imageslap/toys_babies/SET3/728x90_20082013_TOYSBABIES_SET3.jpg" width="685" border="0" /></a>');
$keys = array();
while(count($keys) < $max) {
    $x = mt_rand(0, count($char)-1);
    if(!in_array($x, $keys)) {
       $keys[] = $x;   
    }		
}
$random='';
foreach($keys as $key => $val){
   $random .= $char[$val];  
}
return $random;
}
echo $text=genep(1);
?>